<template>
	<view class="header">
		<!-- 分类列表 -->
		<view class="selectren">
			<view class="aaa" v-for="(row, index) in categoryList" :key="index" @tap="toCategory(row.id)">
				<view class="name">{{row.name}}</view>

				<view class="jiantou">
					<image class="jiantou1" src="../../static/images/attendance/jiantou.png"></image>
				</view>
				<view class="cadid">院内就诊卡：{{ row.cadid }}</view>

			</view>

		</view>
		<view class="addren" @tap="takein">
			<view class="add">
				<image class="add1" src="../../static/images/attendance/tianjia.png"></image>
			</view>
			<view class="jiantou">
				<image class="jiantou1" src="../../static/images/attendance/jiantou.png"></image>
			</view>
			<view class="addjiuzhenren">添加住院人</view>
			<view class="ren">还可以添加{{ren}}人</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				ren: 2,
				categoryList: [],

			}
		},
		onLoad() {
			this.getRegister();
		},
		methods: { 
			// 查询医院列表方法
			getRegister() {

			},
			toCategory(url) {
				if (!url) {
					uni.showToast({
						title: '模板未包含此页面',
						icon: "none"
					});
					return;
				}
				uni.navigateTo({
					url: url
				})
			},
			takein() {

				uni.navigateTo({
					url: './addzhuyuanpeople'
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.addren {
		position: relative;
		margin-top: -10rpx;
		margin-left: 25rpx;

		width: 700rpx;
		background-color: #FFFFFF;
		border-radius: 10rpx;
		height: 170rpx;

		.addjiuzhenren {
			margin-left: 150rpx;
			margin-top: -70rpx;
			font-size: 35rpx;
		}

		.ren {
			margin-left: 150rpx;
			color: #9A9A9A;
			font-size: 30rpx;
			margin-top: 10rpx;
		}

		.add {

			margin-left: 10rpx;
			margin-top: 30rpx;
			display: flex;

			.add1 {
				margin-top: 35rpx;
				margin-left: 20rpx;
				width: 100rpx;
				height: 100rpx;
			}
		}

		.jiantou {
			.jiantou1 {
				width: 30rpx;
				height: 30rpx;

			}

			margin-left: 650rpx;
			margin-top:-60rpx;
			display: flex;
		}
	}

	.selectren {
		margin-top: 25rpx;

		.aaa {
			position: relative;
			margin-top: 20rpx;
			margin-left: 25rpx;

			width: 700rpx;
			background-color: #FFFFFF;
			border-radius: 10rpx;
			height: 170rpx;

			.jiantou {
				.jiantou1 {
					width: 30rpx;
					height: 30rpx;

				}

				margin-left: 650rpx;
				margin-top:-10rpx;
				display: flex;
			}

			.name {
				display: flex;
				padding-top: 35rpx;
				position: relative;
				margin-left: 20rpx;
				font-size: 35rpx;
			}

			.cadid {
				position: relative;
				display: flex;

				font-size: 30rpx;
				margin-left: 20rpx;
				color: #9A9A9A;
			}

		}

	}
</style>
